package com.zt.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

import com.zt.user.UserInfo;
import lombok.Data;

/**
 * 
 * @TableName loan
 */
@TableName(value ="loan")
@Data
public class Loan implements Serializable {
    /**
     * 贷款id
     */
    @TableId
    private Integer loanId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 贷款金额
     */
    private BigDecimal loanAmount;

    /**
     * 利率
     */
    private BigDecimal interestRate;

    /**
     * 还款期限
     */
    private Integer repaymentPeriod;

    /**
     * 贷款状态(0：未还清、1：已还清等)
     */
    private Integer loanStatus;
    /**
     * 1为天天贷2为月月贷3年年贷
     */
    private Integer loanType;
    /**
     * 银行卡号
     */
    private String cardNumber;
    @TableField(exist = false)
    private BigDecimal totalAmount;
    @TableField(exist = false)
    private UserInfo userInfo;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}